package com.buba.springcloud.service;

import com.buba.springcloud.entities.CommonResult;
import com.buba.springcloud.service.impl.OrderFrontDeskFallbackService;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;

@Component
@FeignClient(value = "ORDER-SERVICE",fallback = OrderFrontDeskFallbackService.class)
public interface OrderFrontDeskService {
    @GetMapping(value = "/backstagesupporter/orde/getAllOrders")
    CommonResult getHforeders(@RequestParam("orderCode") String orderCode, @RequestParam("userId") Integer userId);
}
